package com.sky.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DishMapper {

    //@Select("select  count(id) from dish where id = #{id}")
    //
    @Select("select count(id) from dish where category_id = #{categoryId}")
    Integer countByCategoryId(long categoryId);

}
